﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Test2.Model;

namespace Test2.View
{
    public partial class ToonKlanten : Form
    {

        private iDatabaseRepository databaseRepository = Database.Instance.GetDatabase;

        public ToonKlanten()
        {
            InitializeComponent();
        }

        private void Klanten_Load(object sender, EventArgs e)
        {
            fillDGVKlanten();
        }

        public void fillDGVKlanten()
        {
            DataTable dtKlanten = new DataTable();
            dtKlanten = databaseRepository.getKlanten();
            dgvKlanten.DataSource = dtKlanten;
        }
    }
}
